<template>
    <div>
        <!-- 实现实时获取鼠标位置 -->
        <p>鼠标的位置为: x:{{ x }}px ---y:{{ y }}px</p>
    </div>
</template>

<script setup>
import { usemouse } from '@/utils/mouse'
console.log(usemouse());
const { x, y } = usemouse();

</script>
<style scoped></style>